package cn.kgc.fcm.dsbank.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "食堂模块",value = "MenuController")
@RequestMapping("menu")
@RestController
public class MenuController {

    @ApiOperation("吃包子")
    @GetMapping("/eat")
    @ApiResponses({
            @ApiResponse(responseCode = "2000", description = "吃饱了"),
            @ApiResponse(responseCode = "4000", description = "馊了")
    })
    public String eatBaozi(){
        return "包子";
    }
}
